Fixed domain refcounting bug (found by inspection)
authormafetter@seana.research.intel-research.net <mafetter@seana.research.intel-research.net>
Tue, 8 Nov 2005 10:38:32 +0000 (11:38 +0100)
committermafetter@seana.research.intel-research.net <mafetter@seana.research.intel-research.net>
Tue, 8 Nov 2005 10:38:32 +0000 (11:38 +0100)
xen/arch/x86/dom0_ops.c

index a3ba8cd864bf008bb0a4877ff6ac42474f393100..826150219d48de462d4f6bcdb364f503347cc3d2 100644 (file)
@@ -263,6 +263,7 @@ long arch_do_dom0_op(dom0_op_t *op, dom0_op_t *u_dom0_op)
         if ( unlikely(num > 1024) )
         {
             ret = -E2BIG;
+            put_domain(d);
             break;
         }